#include "EMU4BICYCLE.h"


void InitWatchdog(void)
{
    IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
    
    //0.8ms
    IWDG_SetPrescaler(IWDG_Prescaler_256);
    
    IWDG_SetReload(0xfff);
    
    IWDG_ReloadCounter();
    
    IWDG_Enable();
    
    IWDG_ReloadCounter();
}